<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>项目详细信息</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
    <div class="Wrapper">
        <div>
            <div id="pageInTab" class="pageInTab">
                <div tabid="tabA" title="基本信息" lselected="true">
                    <form id="formSet1">
                        <div class="fieldset1 tabel_col clearFix">
                            <div class="caption">
                                <span class="title">基本信息</span>
                            </div>
                            <div class="fieldBox col_33">
                                <div class="label">项目类型</div>
                                <div class="field">
                                     <span id="prjTypCdNm" name="prjTypCdNm">&nbsp;</span>
                                </div>
                            </div>
                            <div class="fieldBox col_33">
                                <div class="label">业务类型</div>
                                <div class="field">
                                    <span id="bizResCd" name="bizResCd">&nbsp;</span>
                                </div>
                            </div>
                            <div class="fieldBox col_33">
                                <div class="label">代理商类型</div>
                                <div class="field">
                                	 <span id="agntTypCd" name="agntTypCd">&nbsp;</span>
                                </div>
                            </div>
                            <div class="fieldBox col_33">
                                <div class="label">项目名称</div>
                                <div class="field">
                                    <span id="prjNm" name="prjNm">&nbsp;</span>
                                </div>
                            </div>
                            <div class="fieldBox col_33">
                                <div class="label">区域-省</div>
                                <div class="field">
                                    <span id="rgnPrCdNm" name="rgnPrCdNm">&nbsp;</span>
                                </div>
                            </div>
                            <div class="fieldBox col_33">
                                <div class="label">区域-市</div>
                                <div class="field">
                                    <span id="rgnCyCd" name="rgnCyCd">&nbsp;</span>
                                </div>
                            </div>
                            
                            <div class="fieldBox col_100" style="display:none;">
								<div class="field">
								    <input name=prjId id="prjId" type="text" class="ui-textbox" value="${id}">
								</div>
							</div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

<script type="text/javascript">
$(function () {
	initData();
});
	//初始化数据
	function initData(){
		var prjId = $("#prjId").val();
    	if(!prjId)return;
    	var _url = '<%=path%>/project/prjbscinfo/getById.do';
    	$.ajax({
    		type: 'get',
    		dataType:'json',
    		data:{id:prjId},
    		url: _url,
    		success:function(msg){
    			 if(msg.success == 1){
    				 setData(msg.data);//设置数据
    			 }else{
    				 top.$.ligerDialog.SQalert({content: msg.info,SQ_type: "error"});
    			 }
    		}
    	});
	}
	//设置页面数据
    function setData(data){
    	$("#prjTypCdNm").html(data.prjTypCdNm);
    	$("#bizResCd").html(data.bizResCd);
    	$("#agntTypCd").html(data.agntTypCd);
    	$("#prjNm").html(data.prjNm);
    	$("#rgnPrCdNm").html(data.rgnPrCdNm);
    	$("#rgnCyCd").html(data.rgnCyCd);
	};
    </script>
</body>
</html>